package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface EmployeeMapper {
    Employee findEmployeeByUsername(String username);

    Employee findEmployeeByIdAndPassword(String oldPassword, Long currentId);

    void updatePassword(String oldPassword, String newPassword, Long currentId);


    void insert(Employee employee);

    Page<Employee> pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    void update(Employee employeeDTO);

    Employee findEmployeeById(Long id);
}
